FROM debian:12.12-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ENV TZ=Asia/Shanghai
ENV PATH=$PATH:/usr/local/bin/gogs
ADD  gogs_0.13.3_linux_amd64.tar.gz /usr/local/bin/
ENTRYPOINT ["gogs","web"]
# http://localhost:3000
# docker build -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gogs:0.13.3-d1212slim .
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gogs:0.13.3-d1212slim
# docker run -p 3000:3000 -d registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gogs:0.13.3-d1212slim
# docker run -p 3000:3000 --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gogs:0.13.3-d1212slim
# docker run  -it --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gogs:0.13.3-d1212slim bash